package com.ldk.admin.common;

import java.io.Serializable;


/**
 * 返回结果
 * @author xiangwl
 * @version v1.0
 */
public class ResponseResult implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2169235843183860058L;

	public ResponseResult()
	{
		//super();
	}
	
	public ResponseResult(Status status, Object message)
	{
		this.status = status;
		this.message = message;
	}
	public ResponseResult(Status status, Object message, String jumpUrl)
	{
		this.status = status;
		this.message = message;
		this.jumpUrl = jumpUrl;
	}
	
	public void AddOk(Object message)
	{
		this.message = message;
		this.status = Status.OK;
	}
	public void AddOk(Object message, String jumpUrl)
	{
		this.message = message;
		this.status = Status.OK;
		this.jumpUrl = jumpUrl;
	}
	
	public void AddError(Object message)
	{
		this.message = message;
		this.status = Status.ERROR;
	}
	
	public void AddError(Object message, String jumpUrl)
	{
		this.message = message;
		this.status = Status.ERROR;
		this.jumpUrl = jumpUrl;
	}
	
	
	private Status status;
	private Object message;
	private String jumpUrl;
	
	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public Object getMessage() {
		return message;
	}
	public void setMessage(Object message) {
		this.message = message;
	}
	public String getJumpUrl() {
		return jumpUrl;
	}
	public void setJumpUrl(String jumpUrl) {
		this.jumpUrl = jumpUrl;
	}

}
